import java.util.Scanner;

/**
 * @author zhaoqian
 * @create 2021/9/1 11:16
 */
public class String8 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()){
            String s = in.nextLine();
            while (s.length()%8>0){
                s=s+0;
            }
            int j = s.length() / 8;
            for (int i=0;i<j;i++){
                System.out.println(s.substring(8*i,8*(i+1)));
            }
        }
    }
}
